﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace JRFinances.ViewModels.RealTransactions
{
    public class RealTransactionsInGroupDataViewModel
    {
        public string CompanyName { get; set; }

        public int Volume { get; set; }

        [DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:F2}")]
        public double Price { get; set; }

        [DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:yyyy-MM-dd}")]
        public DateTime Date { get; set; }

        public int TransactionId { get; set; }

        public string User { get; set; }

        public bool Buy { get; set; }
    }
}